﻿using System.ComponentModel;
using DevExpress.XtraBars.Docking2010.Views;

namespace XCI.Windows.Widgets
{
    [ToolboxItem(false)]
    public partial class BaseWidget : BaseUserControl, IWidget
    {
        public BaseWidget()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 创建文档对象
        /// </summary>
        public virtual BaseDocument CreateDocument()
        {
            return new DevExpress.XtraBars.Docking2010.Views.Widget.Document();
        }

        /// <summary>
        /// 初始化控件
        /// </summary>
        /// <param name="document">文档对象</param>
        public virtual void Init(BaseDocument document)
        {
        }
    }
}
